package web.demo.service.impl;

import java.util.List;

import web.demo.dao.impl.OrderDetailDao;
import web.demo.entity.OrderDetail;
import web.demo.factory.BeanFactory;
import web.demo.service.IOrderDetailService;

public class OrderDetailService implements IOrderDetailService{
	private OrderDetailDao orderDetailDao=BeanFactory.getInstance("orderDetailDao",OrderDetailDao.class);
	@Override
	public boolean addOrderDetail(OrderDetail orderDetail) {
		return orderDetailDao.addOrderDetail(orderDetail);
	}

	@Override
	public List<OrderDetail> getAll() {
		return orderDetailDao.getAll();
	}

	@Override
	public void update(OrderDetail orderDetail) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean delete(int id) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<OrderDetail> getOrderDetail(int ordersId) {
		return orderDetailDao.getOrderDetail(ordersId);
	}

}
